package com.hee.erp.modules.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author weizehong
 * @since 2022-05-02
 */
@Getter
@Setter
@TableName("t_car_archives")
@ApiModel(value = "TCarArchives对象", description = "")
public class CarArchives implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("car_id")
    private String carId;

    @ApiModelProperty("购买日期")
    @TableField("buy_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate buyDate;

    @ApiModelProperty("车辆负责人id")
    @TableField("manager_id")
    private String managerId;

    @ApiModelProperty("购买单位")
    @TableField("buy_cooperation")
    private String buyCooperation;

    @ApiModelProperty("购买单位地址")
    @TableField("buy_cooperation_address")
    private String buyCooperationAddress;

    @ApiModelProperty("销售人员姓名")
    @TableField("saler_name")
    private String salerName;

    @ApiModelProperty("销售人员电话")
    @TableField("saler_phone")
    private String salerPhone;

    @ApiModelProperty("备注说明")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("发票")
    @TableField("bill_img_url")
    private String billImgUrl;

    @ApiModelProperty("付款凭证")
    @TableField("payment_voucher_url")
    private String paymentVoucherUrl;

    @TableField(value = "del_flag",fill = FieldFill.INSERT)
    private Boolean delFlag;

    @TableField(value = "create_user",fill = FieldFill.INSERT)
    private String createUser;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "modify_user",fill = FieldFill.INSERT_UPDATE)
    private String modifyUser;

    @TableField(value = "modify_time",fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;

    @TableField(exist = false)
    private String managerName;



    @TableField(exist = false)
    private List<CarBuyingFiles> carBuyingFilesList;
}
